package com.sdonkey.score.service;

import com.alibaba.fastjson.JSONObject;
import com.sdonkey.score.exception.BusinessException;
import com.sdonkey.score.model.AdPlacementGiftListBean;
import com.sdonkey.score.model.FinishPlacementAdBean;

import java.util.List;

/**
 * Created by hujun on 2018\12\19 0019.
 */
public interface AdPlaceGiftService {

    /**
     * 根据广告主 id 查询已投放广告
     * @param advId
     * @return
     * @throws BusinessException
     */
    public List<FinishPlacementAdBean> getUnGiftAdList(String advId);

    public JSONObject getAdPlaceLimitById(int adId);

    /**
     * 新增或者修改
     * @param params
     * @return
     */
    public Integer setAdPlaceGift(JSONObject params);

    public List<AdPlacementGiftListBean> getAdPlaceGiftList(String advId);

    public void deleteAdPlaceGift(int id);
}
